﻿<Window x:Class="Email_Validator.ValidatorWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Email_Validator"
        mc:Ignorable="d"
        Title="Validator" Height="620.939" Width="610" ResizeMode="NoResize">
    <Grid>
        <DataGrid x:Name="emailGrid" HorizontalAlignment="Left" Margin="10,170,0,0" VerticalAlignment="Top" Height="311" Width="574" SelectionChanged="emailGrid_SelectionChanged" IsReadOnly="True" IsSynchronizedWithCurrentItem="True"/>
        <TextBox x:Name="senderTxtBox" HorizontalAlignment="Left" Height="21" Margin="69,145,0,0" TextWrapping="Wrap" Text="user@domain.com" VerticalAlignment="Top" Width="215"/>
        <DatePicker x:Name="receivedDateTxtBox" HorizontalAlignment="Left" Margin="383,145,0,0" VerticalAlignment="Top" Height="21"/>
        <Button x:Name="getEmailBtn" Content="Get Emails" HorizontalAlignment="Left" Margin="499,145,0,0" VerticalAlignment="Top" Width="75" Click="getEmailBtn_Click"/>
        <Label x:Name="senderLbl" Content="Sender:" HorizontalAlignment="Left" Margin="19,140,0,0" VerticalAlignment="Top"/>
        <Label x:Name="receivedAfterLbl" Content="Received After:" HorizontalAlignment="Left" Margin="289,144,0,0" VerticalAlignment="Top"/>
        <Button x:Name="validateBtn" Content="Validate" HorizontalAlignment="Left" Margin="252,498,0,0" VerticalAlignment="Top" Width="75" RenderTransformOrigin="0.533,0.05" Height="33" Click="validateBtn_Click" IsEnabled="False"/>
        <Label x:Name="mailboxLbl" Content="CRM Email Address:" HorizontalAlignment="Left" Margin="27,23,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10.667"/>
        <Label x:Name="promoteLbl" Content="Auto Promote:" HorizontalAlignment="Left" Margin="27,49,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10.667"/>
        <Label x:Name="orgLbl" Content="Organization:" HorizontalAlignment="Left" Margin="395,23,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10.667"/>
        <Label x:Name="label" Content="Smart Matching:" HorizontalAlignment="Left" Margin="395,49,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10.667"/>
        <Label x:Name="label1" Content="Tracking Token:" HorizontalAlignment="Left" Margin="394,75,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10.667"/>
        <Label x:Name="incomingmethodLbl" Content="Incoming Delivery Method:" HorizontalAlignment="Left" Margin="28,75,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="10.667"/>
        <Label x:Name="mailboxvalueLb" Content="Loading..." HorizontalAlignment="Left" Margin="137,23,0,0" VerticalAlignment="Top" FontSize="10.667"/>
        <Label x:Name="autopromotevalueLbl" Content="Loading..." HorizontalAlignment="Left" Margin="108,49,0,0" VerticalAlignment="Top" FontSize="10.667"/>
        <Label x:Name="deliverymethodvalueLbl" Content="Loading..." HorizontalAlignment="Left" Margin="175,75,0,0" VerticalAlignment="Top" FontSize="10.667"/>
        <Label x:Name="organizationvalueLbl" Content="Loading..." HorizontalAlignment="Left" Margin="473,23,0,0" VerticalAlignment="Top" FontSize="10.667"/>
        <Label x:Name="smartmatchinvalueLbl" Content="Loading..." HorizontalAlignment="Left" Margin="487,49,0,0" VerticalAlignment="Top" FontSize="10.667"/>
        <Label x:Name="trackingtokenvalueLbl" Content="Loading..." HorizontalAlignment="Left" Margin="487,75,0,0" VerticalAlignment="Top" FontSize="10.667"/>
        <GroupBox x:Name="groupBox" Header="Settings" HorizontalAlignment="Left" Margin="10,9,0,0" VerticalAlignment="Top" Height="129" Width="574">
            <Button x:Name="btnDiagnostic" Content="Generate Diagnostic Report" HorizontalAlignment="Left" Height="25" Margin="0,78,-2,0" VerticalAlignment="Top" Width="564" IsEnabled="False" Click="btnDiagnostic_Click"/>
        </GroupBox>
        <Button x:Name="errorBtn" Content="Show Error" HorizontalAlignment="Left" Margin="10,498,0,0" VerticalAlignment="Top" Width="89" Visibility="Hidden" Click="errorBtn_Click"/>
        <Label x:Name="lblExchangeMailbox" Content="Connected to Exchange Mailbox: " HorizontalAlignment="Left" Margin="10,546,0,0" VerticalAlignment="Top" FontSize="10.667" Background="{x:Null}"/>

    </Grid>
</Window>
